//
//  YPTableViewCellForEveryone.m
//  ttpod
//
//  Created by 孙贻鹏 on 16/3/22.
//  Copyright © 2016年 Scott. All rights reserved.
//

#import "YPTableViewCellForEveryone.h"

@interface YPTableViewCellForEveryone ()

@property (nonatomic, retain)UILabel *labelNum;
@property (nonatomic, retain)UIImageView *imageView1;
@property (nonatomic, retain)UILabel *labelTitle;
@property (nonatomic, retain)UILabel *labelName;

@property (nonatomic, retain)UIImageView *imageLike;
@property (nonatomic, retain)UILabel *labelLike;
@property (nonatomic, retain)UIImageView *imagePlay;
@property (nonatomic, retain)UILabel *labelHQ;
@property (nonatomic, retain)UIButton *buttonMV;

//@property (nonatomic, retain)



@end

@implementation YPTableViewCellForEveryone

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if (self) {
        

        [self createSubview];

    }
    return self;
}


- (void)createSubview {
    
    self.labelNum = [[UILabel alloc] init];
    self.labelNum.textAlignment = 1;
    [self addSubview:self.labelNum];
    
    self.imageView1 = [[UIImageView alloc] init];
    [self addSubview:self.imageView1];
    
    self.labelTitle = [[UILabel alloc] init];
    self.labelTitle.textAlignment = 0;
    [self addSubview:self.labelTitle];
    
    self.labelName = [[UILabel alloc] init];
    self.labelName.textAlignment = 0;
    [self addSubview:self.labelName];
    
    self.imageLike = [[UIImageView alloc] init];
    [self addSubview:self.imageLike];
    
    self.labelLike = [[UILabel alloc] init];
    self.labelLike.textAlignment = 0;
    
    self.imagePlay = [[UIImageView alloc] init];
    [self addSubview:self.imagePlay];
    
    self.labelHQ = [[UILabel alloc] init];
    self.labelHQ.textAlignment = 1;
    [self addSubview:self.labelHQ];
    
    self.buttonMV = [UIButton buttonWithType:UIButtonTypeCustom];
    [self.buttonMV addTarget:self action:@selector(playMV) forControlEvents:UIControlEventTouchUpInside];
    [self.buttonMV setTitle:@"MV" forState:UIControlStateNormal];
}

- (void)playMV {
    
    
}



- (void)layoutSubviews {
    
    [super layoutSubviews];
    
    self.labelNum.frame = CGRectMake(0, 0, 30, self.frame.size.height);
    self.labelNum.backgroundColor = [UIColor redColor];
    self.imageView1.frame = CGRectMake(30, 5, 50, 50);
    self.imageView1.backgroundColor = [UIColor greenColor];

}



@end
